package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import lombok.*;
import tt.com.common.annotation.IsNull;

/**
    * 逝者表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@TableName(value = "yx_funeral_dead")
public class Dead {
    @IsNull
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 逝者编号
     */
    @TableField(value = "dead_no")
    private String deadNo;

    /**
     * 姓名
     */
    @IsNull
    @TableField(value = "`name`")
    private String name;

    /**
     * 性别
     */
    @IsNull
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 年龄
     */
    @IsNull
    @TableField(value = "age")
    private Integer age;

    /**
     * 证件类型
     */
    @IsNull
    @TableField(value = "id_type")
    private Integer idType;

    /**
     * 身份证号
     */
    @IsNull
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 户籍
     */
    @IsNull
    @TableField(value = "census_register")
    private String censusRegister;

    /**
     * 遗体处理
     */
    @TableField(value = "remains_deal")
    private Integer remainsDeal;

    /**
     * 民族
     */
    @IsNull
    @TableField(value = "nation")
    private Integer nation;

    /**
     * 国籍
     */
    @IsNull
    @TableField(value = "nationality")
    private Integer nationality;

    /**
     * 出殡时间
     */
    @TableField(value = "funeral_time")
    private Date funeralTime;

    /**
     * 收敛时间
     */
    @TableField(value = "convergence_time")
    private Date convergenceTime;

    /**
     * 死亡证明出具单位
     */
    @TableField(value = "death_certificate")
    private String deathCertificate;

    /**
     * 死亡证明编号
     */
    @TableField(value = "death_certificate_no")
    private String deathCertificateNo;

    /**
     * 殡葬证明出具单位
     */
    @TableField(value = "funeral_prove")
    private String funeralProve;

    /**
     * 遗体来源
     */
    @TableField(value = "body_source")
    private String bodySource;

    /**
     * 骨灰处理
     */
    @TableField(value = "ash_handling")
    private Integer ashHandling;

    /**
     * 地址
     */
    @IsNull
    @TableField(value = "address")
    private String address;

    /**
     * 死亡原因
     */
    @TableField(value = "dead_reason")
    private String deadReason;

    /**
     * 遗体状态
     */
    @TableField(value = "body_state")
    private Integer bodyState;

    /**
     * 死亡时间
     */
    @TableField(value = "dead_time")
    private Date deadTime;

    /**
     * 死亡地点
     */
    @TableField(value = "dead_place")
    private String deadPlace;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "create_user_id")
    private String createUserId;

    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    @TableField(value = "delete_time")
    private Date deleteTime;

    @TableField(value = "delete_user_id")
    private String deleteUserId;

    @TableField(value = "data_status")
    private Integer dataStatus;

    @TableField(value = "organ_id")
    private String organId;

    /**
     * 职业   zy
     */
    @TableField(value = "profession")
    private String profession;

    /**
     * 死亡证编号
     */
    @TableField(value = "death_certificate_number")
    private String deathCertificateNumber;

    /**
     * 骨灰去向
     */
    @TableField(value = "bone_ash_gone")
    private String boneAshGone;

    /**
     * 人员类型
     */
    @TableField(value = "dead_type")
    private String deadType;

    public static final String COL_ID = "id";

    public static final String COL_DEAD_NO = "dead_no";

    public static final String COL_NAME = "name";

    public static final String COL_GENDER = "gender";

    public static final String COL_AGE = "age";

    public static final String COL_ID_TYPE = "id_type";

    public static final String COL_ID_CARD = "id_card";

    public static final String COL_CENSUS_REGISTER = "census_register";

    public static final String COL_REMAINS_DEAL = "remains_deal";

    public static final String COL_NATION = "nation";

    public static final String COL_NATIONALITY = "nationality";

    public static final String COL_FUNERAL_TIME = "funeral_time";

    public static final String COL_CONVERGENCE_TIME = "convergence_time";

    public static final String COL_DEATH_CERTIFICATE = "death_certificate";

    public static final String COL_DEATH_CERTIFICATE_NO = "death_certificate_no";

    public static final String COL_FUNERAL_PROVE = "funeral_prove";

    public static final String COL_BODY_SOURCE = "body_source";

    public static final String COL_ASH_HANDLING = "ash_handling";

    public static final String COL_ADDRESS = "address";

    public static final String COL_DEAD_REASON = "dead_reason";

    public static final String COL_BODY_STATE = "body_state";

    public static final String COL_DEAD_TIME = "dead_time";

    public static final String COL_DEAD_PLACE = "dead_place";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";

    public static final String COL_PROFESSION = "profession";

    public static final String COL_DEATH_CERTIFICATE_NUMBER = "death_certificate_number";

    public static final String COL_BONE_ASH_GONE = "bone_ash_gone";

    public static final String COL_DEAD_TYPE = "dead_type";
}